#include <bits/stdc++.h>

using namespace std;
using ll = long long;

int main() {
	int a, b, c, d;
	cin >> a >> b >> c >> d;

	if (c >= a && d < b) {
		cout << "Yes" << endl;
	} else
		cout << "No" << endl;

}